package com.example.controller;


import com.example.entity.NocvGlobalData;
import com.example.service.GlobalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class GlobalController {

    @Autowired
    private GlobalService globalService;

    @RequestMapping("/queryGlobal")
    private List<NocvGlobalData> queryGlobalData(){
        List<NocvGlobalData> globalDataList = globalService.list();
        return globalDataList;
    }
}
